package org.lyq.erp.auth.employee.mapper;

import java.util.List;
import java.util.Map;

import org.lyq.erp.auth.employee.pojo.Employee;
import org.lyq.erp.auth.employee.pojo.EmployeeExcelModel;


public interface EmployeeMapper {

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer empUuid);
   
    int updateByPrimaryKeySelective(Employee record);
    
    int checkName(String empUsername);

	List<Employee> selectAllEmployee(Employee employee);

	void insertEmpAndRole(Map<String, Object> map);

	void insertOracleSelective(Employee employee);

	void insertOracleEmpAndRole(Map<String, Object> map);

	void deleteAllRole(Integer empUuid);

	void deleteEmployeeByEmpUuid(Integer empUuid);
	
	List<Employee> selectEmployeeByDepUUids(Integer[] depUuids);

	Employee getEmpUsernameByEmpNameAndEmpIdcard(Employee emp);

	Employee selectEmployeeByUsername(String username);

	int checkTele(String empTele);

	List<Employee> selectEmployeeListByDepUuid(Integer depUuid);

	void deleteAllEmployeeByDepUuid(Integer depUuid);

	void insertEmployeeExcelModelSelective(EmployeeExcelModel emp);
}